package Controller;
import Entity.Complaint;
import GUI.CustomerGUI;

/**
 * this is the controller for submitting customer complaints. it will just run the GUI.
 * @author Moran Abilea
 *
 */
public class ComplaintSubmissionController {
	/**
	 * is the function for getting the customer complaints from the DB in order to show them to the customer.
	 * @param cid= the customer id.
	 * @return
	 */
	//this function will work after we will have the SQL. it will return us the customer's complaint array
	public static Complaint[] getCustomerComplaints(String cid)
	{
		Complaint[] myc=DBcontroller.viewCustomerComplaintSQL(cid);
		//DBcontroller.viewCustomerComplaintSQL(cid); // we will call the SQL function.
		return myc;
	} 
	
	/**
	 * is the main that will just run the customer GUI.
	 * @param args
	 */
	public static void main(String[]args)
	{
		CustomerGUI frame = new CustomerGUI();
		frame.setVisible(true);
	}
}
